/**
 * Created by rockyren on 14-8-26.
 */
/**
 *
 */

define(function(require,exports,module){
  var cfg = require("./config");
  var PolygonsHandle = require("./polygonCreate");
  var ColorPanel = require("./ColorPanel");
  var canvasClick = require("./canvasClick");

  //多边形生成
  var ps = new PolygonsHandle;
  ps.drawPolygons();
  //多边形面积数组
  var proportions = ps.getProportions();

  //调色板
  var cp = new ColorPanel();

  //使用事件bind传递参数
  $('#polygon_canvas').bind("click",{proportions:proportions},canvasClick.doClick);

});